import request from "@/utils/request";

// 查询列表
export function listTcForm(query) {
  return request({
    url: "/system/contract/transactionConfirm/list",
    method: "get",
    params: query,
  });
}
// 回显成效确认单
export function transactionConfirm(id) {
  return request({
    url: "/system/contract/transactionConfirm/" + id,
    method: "get",
  });
}
//编辑成交确认单
export function editTcForm(data) {
  return request({
    url: "/system/contract/transactionConfirm",
    method: "put",
    data,
  });
}
//获取信贷和权证员
export function getStationUserList(query) {
  return request({
    url: "/system/employee/workerPostList",
    method: "get",
    params: query,
  });
}
// 查询所有类型
export function listAllTransaction(query) {
  return request({
    url: "/system/contract/transactionType/listAll",
    method: "get",
    params: query,
  });
}
//获取所有区域
export function listCompany() {
  return request({
    url: "/system/company/areaList",
    method: "get",
  });
}
//获取店面列表
export function listStore(query) {
  return request({
    url: "/system/store/storeListByArea",
    method: "get",
    params: query,
  });
}
//获取员工列表
export function listWorker(query) {
  return request({
    url: "/system/employee/workerList",
    method: "get",
    params: query,
  });
}
// 导出
export function exportTcForm(query) {
  return request({
    url: "/system/contract/transactionConfirm/export",
    method: "get",
    params: query,
  });
}
//提交审核
export function submitReview(data) {
  return request({
    url: "/system/contract/transactionConfirm/submitReview",
    method: "post",
    data,
  });
}
//查询所有店长列表
export function listStoreManager() {
  return request({
    url: "/system/employee/storeManagerList",
    method: "get",
  });
}
// 办结
export function finishTcForm(id) {
  return request({
    url: "/system/finishReg/generateCompleted/" + id,
    method: "get",
  });
}
